package cn.szsys.integration.helper.manager;

import cn.szsys.integration.dto.TwoElementsDTO;
import cn.szsys.integration.helper.BusinessBeanNameConstant;
import cn.szsys.integration.helper.business.AbstractTwoElementsHandlerChain;
import jakarta.annotation.PostConstruct;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 二要素
 * @author Ryan
 * @since 2025-05-09
 **/
@Component(BusinessBeanNameConstant.TwoElements.MANAGE_BEAN_NAME)
public class TwoElementsForwardHandlerChainManager extends AbstractForwardHandlerChainManager<TwoElementsDTO> {

    @PostConstruct
    public void init()  {
        Map<String, AbstractTwoElementsHandlerChain> beansOfType = applicationContext.getBeansOfType(AbstractTwoElementsHandlerChain.class);
        this.handlerChainMap.putAll(beansOfType);
    }
}
